package com.koutao.mall.common;

/**
 * Date:     2020/9/27 17:47
 * Description: TODO
 */
public class BusinessException extends RuntimeException{

    private int code;

    public BusinessException(ResultData resultData) {
        super(resultData.getMsg());
        this.code = resultData.getCode();
    }

    public BusinessException(int code, String msg) {
        super(msg);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
